# -*- encoding: utf-8 -*-
from osv import fields,osv
from tools.translate import _
import time
from datetime import datetime, date
import os
import base64,os,re

import sys
reload(sys)
sys.setdefaultencoding("utf8")

class yhoc_dkthanhvien(osv.osv):
    _name = "yhoc_dkthanhvien"
    _description = "Đăng ký thành viên"
    _order = "comment_date desc"

    _STATE_COMMENT = [('choduyet','Chờ duyệt'), ('daduyet','Đã duyệt'),('khonghople','Không hợp lệ')]
    
    _columns = {
        'comment_date': fields.datetime('Time'),
        'name': fields.char('Name', size=200),
        'tentaikhoan': fields.char('Tên tài khoản', size=200),
        'email': fields.char('Email', size=200),
        'gioithieu': fields.text('Giới thiệu'),
        'trietlysong': fields.char('Triết lý sống', size=1000),
        'loaithanhvien': fields.selection([('bacsi','Bác sĩ'),('congtacvien','Cộng tác viên')], 'Loại thành viên'),
        'state': fields.selection(_STATE_COMMENT, 'State'),
        
    }

    _defaults = {
        'comment_date': lambda *a:str(datetime.now().strftime('%Y-%m-%d %H:%M:%S')), 
        'state':'choduyet',
    }
    
    def create(self,cr,uid,vals,context=None):
        return super(yhoc_dkthanhvien,self).create(cr, uid, vals, context=context)
    
    def send(self,cr,uid,ids,context={}):
        dangky = self.browse(cr,uid,ids,context)[0]
        obj_mail = self.pool.get('mail.mail')
        
        email_to = dangky.email
        noidung = ""
        noidung+="""<br/><br/><br/><br/>
                    <b>(Người gởi: Ban quản trị dự án Y học cộng đồng)<br/><br/></b>
                    Chào mừng bạn đã đến với Y học cộng đồng.<br/>
                    Tài khoản của bạn đã được kích hoạt. Bạn có thể đăng nhập vào hệ thống để thay đổi thông tin và cập nhập Profile cá nhân của mình.
                    <br/>
                    <b>User: %s<br/>
                    Pass: 1
                    <b>
                    <br/>
                    <br/>
                    <b>==============================================<br/>*Vui lòng không reply địa chỉ trên</b>
                    <br/><br/>Thông tin được gởi từ hệ thống Y học cộng đồng"""%(dangky.tentaikhoan)
        values={
                'subject': 'Thông tin tài khoản y học cộng đồng',
                'email_to':email_to,
                'body_html':noidung,
                }
        ok=obj_mail.create(cr,uid,values,context={})
        ok1=obj_mail.send(cr, uid, [ok],False,None, context)
        return ok1
    
    def act_choduyet(self, cr, uid, ids, context = None):
        return super(yhoc_dkthanhvien,self).write(cr, uid, ids, {'state':'choduyet'}, context)
    
    def act_daduyet(self, cr, uid, ids, context = None):
        dangky = self.browse(cr, uid, ids[0],context=context)
        if not dangky.loaithanhvien:
            raise osv.except_osv(('Message'), ('Xin hãy chọn loại thành viên!'))
        vals_n = {
                  'sel_groups_1_2': False, 
                  'sel_groups_22_23_24': False, 
                  'in_group_36': False, 
                  'in_group_37': False, 
                  'image': 'iVBORw0KGgoAAAANSUhEUgAAALQAAAC0CAIAAACyr5FlAABBpElEQVR4nO29V5MlV5Im9rmfUFek\nqiwFVAFoNIDu6ZkWHO7ampE0PpD/ep+XS6MZX8jlzszOtphGN1ShRGZViisijjsf3P1E3AIKLdG4\nCcsDkVeEunG+cPG5OPS//2//Cbfjdnzd4O/6Am7H/o5bcNyON45bcNyON45bcNyON45bcNyON45b\ncNyON45bcNyON45bcNyON45bcNyON45bcNyON45bcNyON45bcNyON45bcNyON45bcNyON45bcNyO\nN45bcNyON45bcNyON45bcNyON45bcNyON45bcNyON45bcNyON45bcNyON45bcNyON47qu76Av91g\npqahpqG2paZF3XDToG0pVSBWZti/YDDAnKA8ZBl69FtsNrpZ62ol65VeX0vfy3f9a/4W43sLDmZK\nCamilLSquanRtmk+T8slLw94ecCzOS/mtDhIbafMUtXgClUiZts3qaTNWjYbWV3h6kJfvcxnZ/ns\nbHj5Ml9e9JuNDgOGQYcBIvpd/9xvZXxvwTGf8+nd6v7DdO8+jo95Nq/bpmpa7rpq1lVtm9qa6pqr\nhqqKqzoxgwkg21tVNIvmLMOgQ6/rTV5f56vVsF7l61W/WvWvLuTZl/jk4+HJF8P1df5uf+y3NL5X\n4KgqWiz54IAOjvnkqLn/sHn7UfPwIR0fV3VTVSkl5qpKVcVVYiYmIgWYuaoSESiefwWGPOQsqlBV\nUc0550H6nH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rgkh8QYty+tX7H7jNbqMxZk51LiidVGQpb0CeWYxBVkbEMYkeR\nwJUFcVhCBI00NktBLT+i0M3uDbFl0TNgtXcRjo5LYkTGMgsbbcNhlQkGt8GQKi5w/GPBUVV0cqe+\nf7+2smNfTUTDZ6DybMTSrQH2WHXGw9kqnmM9Ys5sI9XQJvEanmsZtQIuKjQkE8Yn0JUOxU8q7OHU\n2hjljhmMGlMf4tewHv+NyUGqYWPCHjxTFhT2IE1nt0yG/3DdsR8RpiL88Sj6fww5EeDsXJhj5Tmc\nmPd22WUOY6VB8hsVBBowsTD8MuCmz8RTMnxRSnz/Xv38Hs5efH1jma8HR0p0fFQfn1RckWt0uwVa\npPd4j1z5ERD83fgbfOo0qo3jnorRVoyA3mSey0+AWwpmsYjFDGhn+wnORm1id8gZ6rGCzS8p1DTR\n7iVNpmKyQ0mCLwrRYOxGYkRiR+cdwTSoRmQniBDbiHnnkqicQtXqJsZpNjPNjKQpMqZSlyjYHSqX\nFELUtye7faoSVrJLl4qOT6rjI7x6Q6eQ/x/hautaiXyO4QAAAABJRU5ErkJggg==\n', 
                  'in_group_35': False, 
                  'in_group_32': False, 
                  'in_group_33': False, 
                  'in_group_30': False, 
                  'in_group_31': False, 
                  'in_group_14': False, 
                  'in_group_15': False, 
                  'in_group_16': False, 
                  'in_group_17': False, 
                  'in_group_10': False, 
                  'in_group_13': False, 
                  'sel_groups_39': False, 
                  'in_group_18': False, 
                  'in_group_19': False, 
                  'tz': False, 
                  'in_group_38': True, 
                  'in_group_9': True, 
                  'in_group_6': False, 
                  'in_group_4': False, 
                  'in_group_5': False, 
                  'company_id': 1, 
                  'notification_email_send': 'comment', 
                  'sel_groups_7_29_8': False, 
                  'sel_groups_3_11_12': 3, 
                  'action_id': False, 
                  'menu_id': 1, 
                  'in_group_28': False,
                  'in_group_20': False, 
                  'in_group_25': False, 
                  'company_ids': [[6, False, [1]]], 
                  'in_group_27': False, 
                  'in_group_26': False, 
                  'sel_groups_21': False, 
                  'in_group_34': False, 
                  'signature': False,
                  'active': True, 
                  'lang': 'en_US',
                  'email': dangky.email, 
                  'openid_email': dangky.email, 
                  'name': dangky.name,
                  'login': dangky.tentaikhoan, 
                  'openid_url': False}
        user_id = self.pool.get('res.users').create(cr, uid, vals_n, context=context)
        
        vals_emp = {
                    'noilamviec_id': False, 
                    'mobile_phone': False, 
                    'user_id': user_id, 
                    'name': dangky.name, 
                    'lienket': [], 
                    'capbac': False, 
                    'trietlysong': dangky.trietlysong or '', 
                    'image': 'iVBORw0KGgoAAAANSUhEUgAAAOYAAADmCAYAAADBavm7AAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A\n/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9wHHg05FllGIfAAAAojSURBVHja\n7Z1tV+M2EEafSZxAEkP7/39lu3kBQhL1g0eNYUsJsWzL9r3ncJb9sksGX81oJEsWQhAA5MWMEAAg\nJgAgJgBiAgBiAiAmACAmAGICAGICAGICICYAICYAYgIAYgIgJgAgJgAgJgBiAgBiAiAmACAmAGIC\nAGICAGICICYAICYAYgIAYgIgJgAgJgAgJgBiAgBiAiAmACAmAGICAGICAGICICYAICYAYgIAYgIg\nJgAgJgAgJgBiAgBiAoyFghAMEzMzH1hLSXP/U5KWko7+/U7SSdJB0iWEcCFyA/n9hhCIwnBknH+S\nce1//26ArYsaJG0lhRDCmagiJtyXETcuXj0jNqUu6iX+SUZFTPh/IdeSHlzGWzJiSlHfa6UvDwdi\nIqTLuKllyT6acyfPogf/fqeq7j3xW0LMqUlZSHryMnUjyfwrJ2JW3fr3BzIqYo45S5aSHl3IeYZC\nfuZSy6QvIYQXfpOIOSYpY9laSloMQMg6QdJZ0l7Si6Q92TMtrGP2kyU3qho864Fkyd8+hq5rp+Yf\na4eciDlUKeeSnlU1edaZziV/ImdczolZdMdvGTGHWLqW/iAvBizkV3IGMzsz50TMIZWujy5lXJe0\nMX1EXXcjXczsjY0KzWETezfzyaeRSvlfcj755wbEzFrK+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d9sxWQnDnRElssz2YlZe98xHvvI+47QtaBHXRtHYfJi1t53LD1L8r4j9CFofMn7\n1eegne/fzUJMsiRkKGf9Je/O7//MRcx4KgBZEnLNngdJr11lzqJnIa0mI1kSciOe/Pcsbzya2aEL\nOYuepYyHWcWOK1JCjnLGtXPzR3fftpxFj1Kua5kSKWEIcm4+yXkZjZgTu9sDxifnuvYstyZngZQA\n+clZdCxlnFMiJYxFztDGnLPLjPnAnBJGKGeoZc4wGDFrZ+vQfYUxylm/G/RlaBnziUwJI5Yz3g36\nrkQn/LX6pkat2fMgNg/A+DNnmeofnbUs5Vwfr6gDGKucC09A69re7zwzpo8gSAlTkXPjiWjeVM5W\nxKSEhYnL2biknbX4A1LCwpRL2lWTrJlcTP9hKGFh6llz1eT5n7X0gy0pYQE5r1v3chAz1thICVMW\ns5C09CNX+xXTf4iFOMkOIG486F9MXQ/SQkwAv1XuniZQMoFqTR+kBKgo/GvWm5i6no7OCekAV+5q\nAqUUMx4VAgC/J6zexCxEGQvw1Tyz6FxM/0+fEBPga036yJisWQJ8zdITV+diluLCWICk9S8ZE6B9\nyj7ELIk7wDfZy2zRtZgA8P0807oWk/klwPdsOhPTzJAS4EZdKGUB8qPsUky24QEkJoWYLJUA3May\nSzFZKgHIMGMCQIZi0pUFIGMCICYA9MA/jtExIp+lt3kAAAAASUVORK5CYII=\n', 
                    'danhxung': False, 
                    'company_id': 1, 
                    #'gioithieu': vals['gioithieu'] if 'gioithieu' in vals else '', 
                    'gioithieu': dangky.gioithieu or '',
                    'quatrinhdaotao': [], 
                    'loaithanhvien': dangky.loaithanhvien, 
                    'active': 1, 
                    'nganh': False, 
                    'work_email': dangky.email, 
                    'chuyennganh': False}        
        self.pool.get('hr.employee').create(cr, uid, vals_emp, context=context)
        
        ok = super(yhoc_dkthanhvien,self).write(cr, uid, ids, {'state':'daduyet'}, context)
        if ok:
            self.send(cr, uid, ids, context)
            
        return ok
    
    def act_khonghople(self, cr, uid, ids, context = None):
        return super(yhoc_dkthanhvien,self).write(cr, uid, ids, {'state':'khonghople'}, context)
    
    def unlink(self, cr, uid, ids, context=None ):
        for r in self.browse(cr, uid, ids, context=context):
            if r.state == 'daduyet':
                raise osv.except_osv(('Message'), ('Không thể xóa tài khoản đã duyệt!'))
        return super(yhoc_dkthanhvien, self).unlink(cr, uid, ids, context=context)
yhoc_dkthanhvien()
    
    
